import Abstract from '../views/common/abstract.vue';
const releRoles = r => require.ensure([], () => r(require('../views/releRoles.vue')), 'chunkname1')
// const releGroup = r => require.ensure([], () => r(require('../views/releGroup.vue')), 'chunkname2')
// import releGroup1 from '../views/releGroup.vue'
import users from '../views/users.vue'
const releGroup1 = (resolve) => {
  import('../views/releGroup.vue').then((module) => {
    resolve(module)
  })
};
const currency = (resolve) => {
  import('../trade/currency.vue').then((module) => {
    resolve(module)
  })
};
export default [{
  path: '/',
  name: '首页',
  component: (resolve) => require(['../views/index.vue'], resolve),
  children: [  
    {
      path:'/deal',
      name:'交易参数',
      des:'deal',

      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        icon_img:require("../assets/img/key.png"),

      },
      // component: (resolve) => require(['../views/index.vue'], resolve),
      component:Abstract,

      children:[
       {
          path: 'currency',
          name: '币种配置',
          meta: {
            name: '币种配置',
            icon_img:'',
            des:'currency'
          },
          // component: (resolve) => require(['../trade/currency.vue'], resolve),
          component:currency,
        },
        {
          path: 'trademark',
          name: '交易市场',
          meta: {
            name: '交易市场',
            icon_img:'',
            des:'trademark'
          },
          component: (resolve) => require(['../trade/trademark.vue'], resolve),
          children:[
            {
              path: 'markadd',
              name: '添加市场',
              meta: {
                des:'trademark',
                icon_img:''
              },
              // component:releGroup
              component:(resolve) => require(['../trade/markAdd.vue'], resolve)

            },
            {
              path: 'markedit',
              name: '编辑市场',
              meta: {
                des:'trademark',                
                icon_img:''
              },
              component:(resolve) => require(['../trade/markAdd.vue'], resolve)              
            }
          ]
        },
        {
          path: 'paramconfig',
          name: '参数配置',
          meta: {
            name: '参数配置',
            icon_img:'',
            des:'paramconfig'

          },
          component: (resolve) => require(['../trade/paramconfig.vue'], resolve),      
        },
        /*{
          path: 'servicecharge',
          name: '手续费管理',
          meta: {
            name: '手续费管理',
            icon_img:'',
            des:'servicecharge'

          },
          component: (resolve) => require(['../trade/servicecharge.vue'], resolve),        
        },
        {
          path: 'cnyrechargeset',
          name: 'CNY充值配置',
          meta: {
            name: 'CNY充值配置',
            icon_img:'',
            des:'cnyrechargeset'

          },
          component: (resolve) => require(['../views/userGroup.vue'], resolve),        
        },
        {
          path: 'cnyextractset',
          name: 'CNY提币配置',
          meta: {
            name: 'CNY提币配置',
            icon_img:'',
            des:'cnyextractset'

          },
          component: (resolve) => require(['../views/userGroup.vue'], resolve),        
        },*/
      ]
    },
 
  ]
}];